/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class ShoeWasher {
    static categoryCode = '010040021';

    static categoryName = '洗鞋机';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return ShoeWasher.categoryCode;
    }

    get categoryName() {
        return ShoeWasher.categoryName;
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'pdN7PDyI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getOperatingStatus(params) {
        return command({
            method: 'getOperatingStatus',
            methodId: 'p1vFcGV1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRemainTime(params) {
        return command({
            method: 'getRemainTime',
            methodId: 'pDrhJ2Ao',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'p3delsXE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWashTemperature(params) {
        return command({
            method: 'getWashTemperature',
            methodId: 'pgh0v85R',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWashTime(params) {
        return command({
            method: 'getWashTime',
            methodId: 'ptRSCYJz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWaterVolume(params) {
        return command({
            method: 'getWaterVolume',
            methodId: 'phEqdcsW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'pZgR0VIq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pGoxs3kk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWashTemperature(params) {
        return command({
            method: 'setWashTemperature',
            methodId: 'peH3AZvG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWashTime(params) {
        return command({
            method: 'setWashTime',
            methodId: 'pUPQ5Spb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWaterVolume(params) {
        return command({
            method: 'setWaterVolume',
            methodId: 'ppAXwLfx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default ShoeWasher;
